import { HTTP } from '../utils/http.js'

class FreeOrderHttp extends HTTP {
  // 获取我的免单各金额信息
  getMyFreeOrderMoneyInfo (data) {
    return this.request({
      url: 's/luckdraw/MyFreeOrderMoney',
      method: 'POST',
      data: data
    })
  }

  // 获取免单列表
  getFreeOrderList (data) {
    return this.request({
      url: 'luckdraw/FreeOrderHall',
      method: 'POST',
      data: data
    })
  }

  // 获取免单详情信息
  getFreeOrderDetails (data) {
    return this.request({
      url: 'luckdraw/FreeOrderDetails',
      method: 'POST',
      data: data
    })
  }

  // 合成免单海报
  createShareFreeOrderPoster (data) {
    return this.request({
      url: 's/luckdraw/ShareFreeOrderPoter',
      method: 'POST',
      data: data
    })
  }

  // 获取累计免单红包
  getFreeOrderRedpacketList (data) {
    return this.request({
      url: 's/luckdraw/CumulativeRedpackageList',
      method: 'POST',
      data: data
    })
  }

  // 获取免单金额列表
  getFreeOrderMoneyList (data) {
    return this.request({
      url: 's/luckdraw/CumulativeFreeOrderList',
      method: 'POST',
      data: data
    })
  }

  // 获取我的免单列表
  getMyFreeOrderList (data) {
    return this.request({
      url: 's/luckdraw/MyFreeOrderList',
      method: 'POST',
      data: data
    })
  }

  // 帮助免单
  helpFreeOrder (data) {
    return this.request({
      url: 's/luckdraw/HelpHimFreeOrder',
      method: 'POST',
      data: data
    })
  }

  // 获取我邀请的列表
  getMyInviteList (data) {
    return this.request({
      url: 's/luckdraw/MyInvitation',
      method: 'POST',
      data: data
    })
  }
}

export { FreeOrderHttp }